package com.efast.dmom.mes.entity;

import java.time.LocalDate;

import com.efast.dmom.mes.entity.base.ConfigurationBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;

/**
 * 
 * @author William Wu
 * @Date 2020年2月19日
 *
 */
public class WorkingCalendarEntity extends ConfigurationBaseEntity {
	private static final long serialVersionUID = -1996448855867135929L;
	
	private long plantId;
	private String plant;  //工厂
	private long workshopId;
	private String workshop; // 车间
	private long lineId;
	private String line; // 线体
	@JsonDeserialize(using = LocalDateDeserializer.class)
	@JsonSerialize(using = LocalDateSerializer.class)
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd")
	private LocalDate currentDate; // 当前日期
	private int dateType; // 是否工作日 1工作日0休息日
	
	private String ea0; // 预留字段
	private String ea1; // 预留字段
	private String ea2; // 预留字段
	private String ea3; // 预留字段
	private String ea4; // 预留字段
	public long getPlantId() {
		return plantId;
	}
	public void setPlantId(long plantId) {
		this.plantId = plantId;
	}
	public String getPlant() {
		return plant;
	}
	public void setPlant(String plant) {
		this.plant = plant;
	}
	public long getWorkshopId() {
		return workshopId;
	}
	public void setWorkshopId(long workshopId) {
		this.workshopId = workshopId;
	}
	public String getWorkshop() {
		return workshop;
	}
	public void setWorkshop(String workshop) {
		this.workshop = workshop;
	}
	public long getLineId() {
		return lineId;
	}
	public void setLineId(long lineId) {
		this.lineId = lineId;
	}
	public String getLine() {
		return line;
	}
	public void setLine(String line) {
		this.line = line;
	}
	public LocalDate getCurrentDate() {
		return currentDate;
	}
	public void setCurrentDate(LocalDate currentDate) {
		this.currentDate = currentDate;
	}
	public int getDateType() {
		return dateType;
	}
	public void setDateType(int dateType) {
		this.dateType = dateType;
	}
	public String getEa0() {
		return ea0;
	}
	public void setEa0(String ea0) {
		this.ea0 = ea0;
	}
	public String getEa1() {
		return ea1;
	}
	public void setEa1(String ea1) {
		this.ea1 = ea1;
	}
	public String getEa2() {
		return ea2;
	}
	public void setEa2(String ea2) {
		this.ea2 = ea2;
	}
	public String getEa3() {
		return ea3;
	}
	public void setEa3(String ea3) {
		this.ea3 = ea3;
	}
	public String getEa4() {
		return ea4;
	}
	public void setEa4(String ea4) {
		this.ea4 = ea4;
	}
}
